package com.xq.io;

import java.io.InputStream;

/**
 * @Author: xiaoqiang
 * @Description: 获取配置文件
 * @Date: 2021/5/27
 * @Version: 1.0
 */
public class Resource {

    /**
     * 获取配置文件输入流
     * @param path
     * @return
     */
   public static InputStream getResource(String path){
       InputStream resourceAsStream = Resource.class.getClassLoader().getResourceAsStream(path);
       return resourceAsStream;
   }
}
